*Required libraries
pyvisa
ex.)
$ pip install pyvisa

*Operation example
C:\SampleProgram\Python 3.7.2\GPIB_NI_Sample>python main.py
BoardID?
0
PrimaryAddress?
1
Please enter the command (Exit with no input)
*idn?
HIOKI,SM7420,161128921,V2.00
Please enter the command (Exit with no input)


C:\SampleProgram\Python 3.7.2\GPIB_NI_Sample>